from django.contrib import admin
from afms.activity import models


class GroupAdmin(admin.ModelAdmin):
    list_display = ('name', 'description')
    

class GroupShipAdmin(admin.ModelAdmin):
    list_display = ('group', 'member', 'is_manager', 'balance')


class ActivityDetailAdmin(admin.ModelAdmin):
    list_display = ('group', 'date', 'totoal_fee', 'remark')
    

class AccountDetailAdmin(admin.ModelAdmin):
    list_display = ('groupship', 'datetime', 'money', 'remark')    
    
    
admin.site.register(models.Group, GroupAdmin)
admin.site.register(models.GroupShip, GroupShipAdmin)
admin.site.register(models.ActivityDetail, ActivityDetailAdmin)
admin.site.register(models.AccountDetail, AccountDetailAdmin)